#ifndef _THREAD_H
#define _THREAD_H

#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>

#ifndef SAFE_DELETE
#define SAFE_DELETE(o) if(o) delete (o); (o) = NULL
#endif

#ifndef SAFE_FREE
#define SAFE_FREE(o) if(o) free(o); (o) = NULL
#endif 

#endif //_THREAD_H